<template>
  <div>
    <h2>首页</h2>
    <p>{{ $store.state.ccc }}</p>
    <p>{{ $store.state.fff }}</p>
    <button @click="$store.commit('changeCCC', '天天向上')">点我修改ccc数据</button>

    <button @click="$store.commit('changeFFF', [10,20,30])">点我修改fff数据</button>
  </div>
</template>

<script>
import {mapState} from 'vuex'
export default {
<<<<<<< HEAD
  name: 'edit',
  computed:{
    ...mapState(['userInfo'])
=======
  name: 'home',
  computed:{
    ...mapState(['ccc','fff'])
>>>>>>> vuex
  }
}
</script>

<style></style>
